🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / build-logic / convention / src / main / kotlin / org / meshtastic / buildlogic / AndroidInstrumentedTests.kt
Displaying Raw • Download
build-logic/convention/src/main/kotlin/org/meshtastic/buildlogic/AndroidInstrumentedTests.kt bd2863243bab6eb213401d949839a2bc74dde7e2 (bd286324) Text, 1.57 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.buildlogic
Tff7b72import T7ee787com.android.build.api.variant.LibraryAndroidComponentsExtension
Tff7b72import T7ee787org.gradle.api.Project
T8b949e/**
* Disable unnecessary Android instrumented tests for the [project] if there is no `androidTest` or `androidDeviceTest`
* folder. Otherwise, these projects would be compiled, packaged, installed and ran only to end-up with the following
* message:
* > Starting 0 tests on AVD
*
* Note: this could be improved by checking other potential sourceSets based on buildTypes and flavors.
*/
Tff7b72internal Tff7b72fun Te6edf3LibraryAndroidComponentsExtensionTb4b4b4.Td2a8ffdisableUnnecessaryAndroidTestsTb4b4b4(Te6edf3projectTb4b4b4: Te6edf3ProjectTb4b4b4) Tff7b72= Te6edf3beforeVariants Tb4b4b4{
Tffa657itTb4b4b4.Te6edf3androidTestTb4b4b4.Te6edf3enable Tff7b72= Tffa657itTb4b4b4.Te6edf3androidTestTb4b4b4.Te6edf3enable Tff7b72&Tff7b72&
Tb4b4b4(
Te6edf3projectTb4b4b4.Te6edf3projectDirTb4b4b4.Te6edf3resolveTb4b4b4(Ta5d6ff"Ta5d6ffsrc/androidTestTa5d6ff"Tb4b4b4)Tb4b4b4.Te6edf3existsTb4b4b4(Tb4b4b4) Tff7b72|Tff7b72|
Te6edf3projectTb4b4b4.Te6edf3projectDirTb4b4b4.Te6edf3resolveTb4b4b4(Ta5d6ff"Ta5d6ffsrc/androidDeviceTestTa5d6ff"Tb4b4b4)Tb4b4b4.Te6edf3existsTb4b4b4(Tb4b4b4)
Tb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.32s